<?php

defined("_ARKN_EXEC") or exit("no no, mr. superman no here");
($_SESSION["roleid"] == Roles::Secretary) or exit("you almost got away with it");
$currentemail = $_POST["currentemail"];
$currentaddress = $_POST["currentaddress"];
$newaddress = $_POST["newaddress"];
$newemail = $_POST["newemail"];

require_once "Account.php";
if($account->editAccount($currentemail, $newaddress, $newemail))
	header("Location: " . ROOT_ADDRESS . "?page=home");
else
	header("Location: " . ROOT_ADDRESS . "/invalid_credentials.html");
?>
